import service from '@/utils/request'
// @Tags MemberLevels
// @Summary 创建memberLevels表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.MemberLevels true "创建memberLevels表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /hairmember/memberLevels/createMemberLevels [post]
export const createMemberLevels = (data) => {
  return service({
    url: '/hairmember/memberLevels/createMemberLevels',
    method: 'post',
    data
  })
}

// @Tags MemberLevels
// @Summary 删除memberLevels表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.MemberLevels true "删除memberLevels表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /hairmember/memberLevels/deleteMemberLevels [delete]
export const deleteMemberLevels = (params) => {
  return service({
    url: '/hairmember/memberLevels/deleteMemberLevels',
    method: 'delete',
    params
  })
}

// @Tags MemberLevels
// @Summary 批量删除memberLevels表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除memberLevels表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /hairmember/memberLevels/deleteMemberLevels [delete]
export const deleteMemberLevelsByIds = (params) => {
  return service({
    url: '/hairmember/memberLevels/deleteMemberLevelsByIds',
    method: 'delete',
    params
  })
}

// @Tags MemberLevels
// @Summary 更新memberLevels表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.MemberLevels true "更新memberLevels表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /hairmember/memberLevels/updateMemberLevels [put]
export const updateMemberLevels = (data) => {
  return service({
    url: '/hairmember/memberLevels/updateMemberLevels',
    method: 'put',
    data
  })
}

// @Tags MemberLevels
// @Summary 用id查询memberLevels表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.MemberLevels true "用id查询memberLevels表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /hairmember/memberLevels/findMemberLevels [get]
export const findMemberLevels = (params) => {
  return service({
    url: '/hairmember/memberLevels/findMemberLevels',
    method: 'get',
    params
  })
}

// @Tags MemberLevels
// @Summary 分页获取memberLevels表列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取memberLevels表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /hairmember/memberLevels/getMemberLevelsList [get]
export const getMemberLevelsList = (params) => {
  return service({
    url: '/hairmember/memberLevels/getMemberLevelsList',
    method: 'get',
    params
  })
}

// @Tags MemberLevels
// @Summary 不需要鉴权的memberLevels表接口
// @Accept application/json
// @Produce application/json
// @Param data query hairmemberReq.MemberLevelsSearch true "分页获取memberLevels表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /hairmember/memberLevels/getMemberLevelsPublic [get]
export const getMemberLevelsPublic = () => {
  return service({
    url: '/hairmember/memberLevels/getMemberLevelsPublic',
    method: 'get',
  })
}
